let path = require('path')
function resolve(o) {
    return path.resolve(__dirname, o)
}
module.exports = {
    entry: {
        main: resolve('src/scripts/main.js'),
        a: resolve('src/scripts/a.js')
    }, // 指定入口文件
    output: {
        path: resolve('dist/js'),
        // filename: '[name]-[hash].js'
        filename: "[name]-[chunkhash].js"
    }
}